<%@ page language="java" contentType="text/html; charset=utf-8"
    pageEncoding="utf-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt"%>
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>院友信息检索</title>
<script type="text/javascript">
        window.onload=function () {//加载完毕
            var hidediv=document.getElementById('hpn'),
                btn=document.getElementById('btn'),
                hflag=1;//标记是否隐藏
            btn.onclick=function () {
            	hidediv.style.display="none";
                if (hflag) {//当前为收起状态，展开函数
                    hidediv.style.display="block";
                    btn.innerHTML="收起选项";
                    hflag=0;
                }else {//当前为展开状态，收起函数
                     hidediv.style.display="none";
                     btn.innerHTML="高级检索";
                     hflag=1;
                }    
            }
        }
</script>

<style type="text/css">
		*{margin: 0;padding: 0;}
		.pn
		{
			background:#220088;
 			color:#FFFFFF;
 			font-size: 16px;
 			line-height:30px;
		}
		.nn
		{
		 	text-align:center;
		 	line-height:50px;
		 	height:50px;
		}
		.hpn
		{
			padding-left:25%;
			padding-bottom:10px;
			line-height:60px;
					}
		.table_div{ width:100%; margsin:0 auto;}
		body
		{
			font-size: 16px;
			line-height:40px;
			color:#220088;
		}
		.btn{
			text-decoration: underline;
			color: #FFFFFF;
		}
		.btn:hover{
		 	text-decoration: underline;
			color: red;
		}
		a
		{
			text-decoration: none;
			color: #220088;
		}
		a:hover
		{
			text-decoration: underline;
			color: red;
		}
		.inputDiv
		{
			width: 80%px;
			height: 25px;
		}
		.smBtn
		{
			background: #AAAAAA;
			color: #220088;
			font-size: 15px;
			height: 28px;
			border-radius: 2px;
		}
		.smBtn:hover
		{
			background: #4067EE;
		}
		.listchoose{
			font-size: 16px;
		}

</style>
</head>

<body>
<div><img src="images/院友信息.PNG" width="100%" height="350"/></div>
    <div id="pn" class="pn">
    <form class="box" action="" method="post">
    <div id="nn" class="nn">
        <a href="javascript:void(0);" id="btn" class="btn">高级检索</a>&nbsp;&nbsp;
        <input type="text" name="normalsearch" size="100" class="inputDiv"> 
        <input type="submit" name="normalsearchsubmit" value=" 搜   索 " class="smBtn">     
    </div>      
        <div id="hpn" class="hpn" style="display:none">
            	专业：<select name="category" size="1" class="listchoose">
            			<option value='1'>管理科学</option>
            			<option value='2'>信息管理与信息系统</option>
            			<option value='3'>人力资源管理</option>
            			<option value='4'>公共事业管理</option>
            		 </select><br>
            	去向类别：<select name="category" size="1" class="listchoose">
            			<option value='1'>就业</option>
            			<option value='2'>国内读研</option>
            			<option value='3'>国外深造</option>
            			<option value='4'>其他</option>
            		 </select><br>
            	去向地：<select name="category" size="1" class="listchoose">
            			<option value='1'>北京</option>
            			<option value='2'>天津</option>
            			<option value='3'>河北</option>
            			<option value='4'>山西</option>
            			<option value='5'>内蒙古</option>
            			<option value='6'>辽宁</option>
            			<option value='7'>吉林</option>
            			<option value='8'>黑龙江</option>
            			<option value='9'>上海</option>
            			<option value='10'>江苏</option>
            			<option value='11'>浙江</option>
            			<option value='12'>安徽</option>
            			<option value='13'>福建</option>
            			<option value='14'>江西</option>
            			<option value='15'>山东</option>
            			<option value='16'>河南</option>
            			<option value='17'>湖北</option>
            			<option value='18'>湖南</option>
            			<option value='19'>广东</option>
            			<option value='20'>广西</option>
            			<option value='21'>海南</option>
            			<option value='22'>重庆</option>
            			<option value='23'>四川</option>
            			<option value='24'>贵州</option>
            			<option value='25'>云南</option>
            			<option value='26'>西藏</option>
            			<option value='27'>陕西</option>
            			<option value='28'>甘肃</option>
            			<option value='29'>青海</option>
            			<option value='30'>宁夏</option>
            			<option value='31'>新疆</option>
            			<option value='32'>台湾</option>
            			<option value='33'>香港</option>
            			<option value='34'>澳门</option>
            			<option value='35'>国外</option>
            		 </select><br>
            	<!-- 需要根据数据库实际设置的类别进行更改 -->
        </div>
    </form>
    </div>

<!--table表单层-->
<div class="table_div">
    <table class="table table-striped table-bordered table-hover" width=100%>
        <thead>
        <tr>
            <th align="center">姓名</th>
            <th align="center">专业</th>
            <th align="center">班主任</th>
            <th align="center">去向类别</th>
            <th align="center">去向地</th>
            <th align="center">去向单位</th>
        </tr>
        </thead>
        <tbody>
        <tr>
        <c:forEach var="members" items="${members}"><!-- 根据实际改members实体 -->
            <tr>
                <td align="center">${members.name}</td>
                <td align="center">${members.professional}</td>
                <td align="center">${members.teacher}</td>
                <td align="center">${members.category}</td>
                <td align="center">${members.where}</td>
                <td align="center">${members.which}</td>
            </tr>
        </c:forEach>
        </tr>
        </tbody>
    </table>
   


<div style="width: 100%;height:2px;padding-left:5%;">
   <!--页数显示-->
      <p>共<font size="3" color="red">${pageUtil.pageNumber}</font>条,当前第<font size="3" color="red">${pageUtil.pageIndex}</font>页<br></p>
</div>
<!--分页-->
<div style="width: 93%;text-align:right;" >
        
       <a href="${APP_PATH }/member/list.do?pageIndex=1" >首页</a>
       <a href="${APP_PATH }/member/list.do?pageIndex=${pageUtil.pageIndex>1?pageUtil.pageIndex-1:1}" class='pre'>上一页</a>
        <c:forEach begin="1" end="${pageUtil.pageCount}" var="i">
            <a href="${APP_PATH }/member/list.do?pageIndex=${i}" style="text-decoration: none;">${i}</a>
        </c:forEach>

        <a href="${APP_PATH }/member/list.do?pageIndex=${pageUtil.pageIndex<pageUtil.pageCount?pageUtil.pageIndex+1:pageUtil.pageCount}"  class='next'>下一页</a>
        <a href="${APP_PATH }/member/list.do?pageIndex=${pageUtil.pageCount}" class='last' >末页</a>

</div>
</div>

</body>

</html>